#ifndef PARTICLESYSTEM_H
#define PARTICLESYSTEM_H

#include <vector>

using namespace std;

#define DIM 2

class Particle
{
public:
	Particle(double *pos, double *vel, double *force, double mass=1.0);
	~Particle(){};

public:
	double mass;
	double pos[DIM];
	double vel[DIM];
	double force[DIM];

	bool onCircle;
	int index;
};

typedef vector<Particle*> ParticleList;

class ParticleSystem
{
public:
	ParticleSystem(void);
	~ParticleSystem(void);
	void Clear();
	void AddParticle(Particle *p);
	void GetAccleration(double *accleration);
	void GetVelocity(double *velocity);
	void GetPosition(double *position);
	int GetScale();

public:
	ParticleList particles;
};

#endif


